<output>@result</output>

@code 
{
  int result = 0;

  public void Calculate(int x, int y)
  {
    result = x + y;
    StateHasChanged();
  }
}